import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';

import { AppModule } from './app/app.module';
import { environment } from "src/environment/environment";

declare const require: any;

if (environment.isMock) {
  import(require("../src/mock/index.js")).then(_ => {

  });
}

platformBrowserDynamic().bootstrapModule(AppModule)
  .catch(err => console.error(err));
